<%-- 
    Document   : agung
    Created on : 20 Sep 11, 13:00:16
    Author     : INSPIRON_1427
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<form id="form1" name="form1" method="post" action="">
  <input type="text" name="field1" />
  <input type="text" name="field2" />
  <P><input type="submit" name="Submit" value="Submit" />
</form>

<%
String  tes = request.getParameter ("field1");
String  tes2 = request.getParameter ("field2");
int a = Integer.parseInt(tes);
int b = Integer.parseInt(tes2);
int c = a * b;
%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <p>hasil perkaliannya = <%=c%></p>
    </body>
</html>
